<?php

class Home extends CI_Controller {

	public function __construct()
	{
		parent::__construct();
	}
	
	function index()
	{
		if($this->session->userdata('id'))
		{
		
		}
		else
		{
			$data['title'] = array('User', 'Login');
			$data['content'] = $this->load->view('login_view', null, true);
		}
		
		$this->load->view('main_view', $data);
	}
}